import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "@/router";
import { createPinia } from "pinia";
import EventBus, { EventBusKey } from "./utils/EventBus";
// import { getElementLabelLine } from "element-tree-line";
// css
// import "element-tree-line/dist/style.css";
const pinia = createPinia();
const app = createApp(App);
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.provide(EventBusKey, EventBus);
app.use(router).use(pinia).use(ElementPlus);

app.mount("#app");
